//
//  CVTabBarItem.m
//  dangjiae
//
//  Created by haoyi on 13-11-22.
//  Copyright (c) 2013年 haoyi. All rights reserved.
//

#import "CVTabBarItem.h"

@implementation CVTabBarItem


-(id)initWithTitle:(NSString *)title image:(UIImage *)image tag:(NSInteger)tag{

    self = [super initWithTitle:title image:image tag:tag];
    if (self) {
        
        [self setTitleTextAttributes];
    }
    
    return self;
}


-(void)setTitleTextAttributes{
    
    [self setTitleTextAttributes:[NSDictionary dictionaryWithObjectsAndKeys:
                                  [UIColor grayColor], UITextAttributeTextColor,
                                  nil] forState:UIControlStateNormal];
    [self setTitleTextAttributes:[NSDictionary dictionaryWithObjectsAndKeys:
                                  [UIColor colorWithRed:27.0/255.0 green:91.0/255.0 blue:153.0/255.0 alpha:1.0], UITextAttributeTextColor,
                                  nil] forState:UIControlStateSelected];
}

@end
